///audience/coin/balance

import {
    BASE_URL
} from '../../config';

import {
    http
} from '../index';

const PAYMENT_URL = BASE_URL + "/payment"

export function getIconBalance(data,config) {
    return http({
        url: PAYMENT_URL + '/audience/coin/balance',
        method: 'get',
        ...config
    })
}

export function fetchPlaymentTypeList(data,config){
    return http({
        ...config,
        data,
        url:PAYMENT_URL+"/audience/cashDesk/current",
        method:"get"
    })
}

export function fetchCoinFlowList(data,config){
    return http({
        ...config,
        data,
        url:PAYMENT_URL+"/audience/coin/businessFlow",
        method:'get'
    })
}

export function unitedPaV1(data,config){
    return http({
        ...config,
        data,
        url:PAYMENT_URL+"/unitedPay/v1",
        method:'post'
    })
}